use equation to solve problem